#include <bits/stdc++.h>

using namespace std;

int a[2010],b[2010],c[4020],la,lb,lc;
int main()
{
    string q,w;
    cin>>q>>w;
    la = q.length();
    lb = w.length();
    for(int i=1;i<=la;i++){
        a[i] = q[la-i] - '0';
    }
    for(int i=1;i<=lb;i++){
        b[i] = w[lb-i] - '0';
    }
    for(int i = 1;i<=la;i++){
        for(int j=1;j<=lb;j++){
            c[i+j-1] += a[i] * b[j];
            c[i+j] += c[i+j-1]/10;
            c[i+j-1] = c[i+j-1]%10;
        }
    }
    lc = la+lb;
    while(c[lc]==0&&lc>1){
        lc--;
    }
    for(int i = lc;i>=1;i--){
        cout<<c[i];
    }
    return 0;
}
